<%inherit file="base.html"/>

<%doc>
Expects;
data - a list of models
properties - a list of properties to display from the models in data
</%doc>


<h3>Index</h3>
<ul>
	<li>${data}</li>
	<li>${key}</li>
	<li>${format}</li>
</ul>
<table>
	<tr>
	% for property in properties:
		<th>${property}</th>
	% endfor
	</tr>

% for item in data:
	<tr>
	% for property in properties:
		<td>${getattr(item, property)}</td>
	% endfor
	</tr>
% endfor
</table>